#include<stdio.h>
#include<math.h>
#define pi 3.141592

void sumProductAndNumDigits(int n, int *sum, int *pro, int *digits);

int main (){
 int n, i, pro, sum, digits;
 
	do {
		printf("Please enter a positive integer >=10: ");
		scanf("%d", &n);
		
		if(n>10){
			
			sumProductAndNumDigits(n, &sum, &pro, &digits);
			printf("the sum of the digits of the integer %d is %d, and the product is %d \n", n, sum, pro );
			printf("The number the digits of the integer %d is %d", n, digits);
			
			
		}else printf("Error : num <10\n");
		
		
		
	}while (n<10);
	
	
	return 0;
}

//91234567890//
void sumProductAndNumDigits(int n, int *sum, int *pro, int *digits){


int i ;
*sum = 0 ; *pro = 1; *digits =0;
while(n>0){

i = n%10;
*sum = *sum + i;
*pro = *pro * i;
*digits = *digits + 1;
n = n/10; 
}
}
